<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'call.jsp' starting page</title>
    <s:head theme="ajax"/>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="mystyle.css">
	<script type="text/javascript">
		function addCall()
		{	
			var islog= document.getElementById("islogin").value;
			if(islog=="")
				alert("请先登录!");
			else 
				document.location.href='gx_getCallSortAll1.shtml';
		}
	</script>
  </head>
  
  <body>
  <div style="height:600px; width: 600px;border-style:solid;border-width: 1px;float: left;">
  <input type="hidden" name="islogin" value='<s:property value="%{#session.userInfo.userName}"/>'/>
  <s:tabbedPanel id="tabs" doLayout="true" theme="ajax" cssStyle="width:100%;height:420px;" >
  	<s:div label="推荐呼叫" theme="ajax" id="callList">
  		<table width="100%" cellpadding="0" cellspacing="0">
  			<tr>
  			<td>编号</td>
  			<td>种类</td>
  			<td>名称</td>
  			<td>结束时间</td>
  			<td>状态</td>
  			</tr>
  			<s:iterator  value="#request.callList" id="call1" status="index">
  			<s:if test="#index.odd == true"> 
  			<tr class="tr_odd">
  			</s:if>
  			<s:else>
  			<tr class="tr_j">
  			</s:else>
   				<td><s:property value="callNo"/></td> 			
  				<td><s:property value="callSort.callSortName"/></td>
  				<td>
	  				<a href="gongxu/gx_getCallById.shtml?callInfo.callId=<s:property value="callId"/>">
						<s:if test="callName!=null&&callName.length()>15">
						<s:property value="callName.substring(0,15)"/>
						</s:if>
						<s:else>
						<s:property value="callName" />
						</s:else>
					</a>
  				</td>
  				<td><s:date name="dueTime" format="yyyy-MM-dd"/></td>
  				<td><s:if test="state==0">
						进行中
					</s:if>
					<s:elseif test="state==1">
						已关闭
					</s:elseif></td>
  			</tr>
  			</s:iterator>
			<tr><td colspan="5">
			<div width="100%" style="border-style: solid;border-width: 1px;background-color: #D7D7D7;" align="right">
			<table width="100%"><tr style="font-size: 14px;"><td align="left"><a href="gongxu/callAll.jsp">更多>><a></td><td align="right"><input style="font-size: 14px;" type="button" value="发布呼叫" onclick="addCall()"></td></tr></table>
			</div>
			</td></tr>
		</table>
  	</s:div>
  	<s:div id="callList1" label="最新供应" theme="ajax">
  	<table width="100%"  cellpadding="0" cellspacing="0">
  			<tr>
  			<td>编号</td>
  			<td>种类</td>
  			<td>名称</td>
  			<td>结束时间</td>
  			<td>状态</td>
  			</tr>
  			<s:iterator  value="#request.callList1" id="call1" status="index">
  			<s:if test="#index.odd == true"> 
  			<tr class="tr_odd">
  			</s:if>
  			<s:else>
  			<tr class="tr_j">
  			</s:else>
   				<td><s:property value="callNo"/></td> 			
  				<td><s:property value="callSort.callSortName"/></td>
  				<td>
	  				<a href="gongxu/gx_getCallById.shtml?callInfo.callId=<s:property value="callId"/>">
						<s:if test="callName!=null&&callName.length()>15">
						<s:property value="callName.substring(0,15)"/>
						</s:if>
						<s:else>
						<s:property value="callName" />
						</s:else>
					</a>
  				</td>
  				<td><s:date name="dueTime" format="yyyy-MM-dd"/></td>
  				<td><s:if test="state==0">
						进行中
					</s:if>
					<s:elseif test="state==1">
						已关闭
					</s:elseif></td>
  			</tr>
  			</s:iterator>
			<tr><td colspan="5">
			<div width="100%" style="border-style: solid;border-width: 1px;background-color: #D7D7D7;" align="right">
			<table width="100%"><tr style="font-size: 14px;"><td align="left"><a href="gongxu/callAll.jsp">更多>><a></td><td align="right"><input style="font-size: 14px;" type="button" value="发布呼叫" onclick="addCall()"></td></tr></table>
			</div>
			</td></tr>
		</table>
  	
  	</s:div>
  	<s:div id="callList2" label="最新需求" theme="ajax">
  	<table width="100%"  cellpadding="0" cellspacing="0">
  			<tr>
  			<td>编号</td>
  			<td>种类</td>
  			<td>名称</td>
  			<td>结束时间</td>
  			<td>状态</td>
  			</tr>
  			<s:iterator  value="#request.callList2" id="call1" status="index">
  			<s:if test="#index.odd == true"> 
  			<tr class="tr_odd">
  			</s:if>
  			<s:else>
  			<tr class="tr_j">
  			</s:else>
   				<td><s:property value="callNo"/></td> 			
  				<td><s:property value="callSort.callSortName"/></td>
  				<td>
	  				<a href="gongxu/gx_getCallById.shtml?callInfo.callId=<s:property value="callId"/>">
						<s:if test="callName!=null&&callName.length()>15">
						<s:property value="callName.substring(0,15)"/>
						</s:if>
						<s:else>
						<s:property value="callName" />
						</s:else>
					</a>
  				</td>
  				<td><s:date name="dueTime" format="yyyy-MM-dd"/></td>
  				<td><s:if test="state==0">
						进行中
					</s:if>
					<s:elseif test="state==1">
						已关闭
					</s:elseif></td>
  			</tr>
  			</s:iterator>
			<tr><td colspan="5">
			<div width="100%" style="border-style: solid;border-width: 1px;background-color: #D7D7D7;" align="right">
			<table width="100%"><tr style="font-size: 14px;"><td align="left"><a href="gongxu/callAll.jsp">更多>><a></td><td align="right"><input style="font-size: 14px;" type="button" value="发布呼叫" onclick="addCall()"></td></tr></table>
			</div>
			</td></tr>
		</table>
  	</s:div>
  	<s:div id="callList3" label="点击排行" theme="ajax">
  	<table width="100%"  cellpadding="0" cellspacing="0">
  			<tr>
  			<td>编号</td>
  			<td>种类</td>
  			<td>名称</td>
  			<td>结束时间</td>
  			<td>状态</td>
  			</tr>
  			<s:iterator  value="#request.callList3" id="call1" status="index">
  			<s:if test="#index.odd == true"> 
  			<tr class="tr_odd">
  			</s:if>
  			<s:else>
  			<tr class="tr_j">
  			</s:else>
   				<td><s:property value="callNo"/></td> 			
  				<td><s:property value="callSort.callSortName"/></td>
  				<td>
	  				<a href="gongxu/gx_getCallById.shtml?callInfo.callId=<s:property value="callId"/>">
						<s:if test="callName!=null&&callName.length()>15">
						<s:property value="callName.substring(0,15)"/>
						</s:if>
						<s:else>
						<s:property value="callName" />
						</s:else>
					</a>
  				</td>
  				<td><s:date name="dueTime" format="yyyy-MM-dd"/></td>
  				<td><s:if test="state==0">
						进行中
					</s:if>
					<s:elseif test="state==1">
						已关闭
					</s:elseif></td>
  			</tr>
  			</s:iterator>
			<tr><td colspan="5">
			<div width="100%" style="border-style: solid;border-width: 1px;background-color: #D7D7D7;" align="right">
			<table width="100%"><tr style="font-size: 14px;"><td align="left"><a href="gongxu/callAll.jsp">更多>><a></td><td align="right"><input style="font-size: 14px;" type="button" value="发布呼叫" onclick="addCall()"></td></tr></table>
			</div></td></tr>
		</table>
  	</s:div>
  </s:tabbedPanel></div>
</body>
</html>
